using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class vt_acctbal2Map : EntityTypeConfiguration<vt_acctbal2>
    {
        public vt_acctbal2Map()
        {
            // Primary Key
            this.HasKey(t => t.account__);

            // Properties
            this.Property(t => t.account__)
                .IsRequired()
                .HasMaxLength(40);

            // Table & Column Mappings
            this.ToTable("vt_acctbal2");
            this.Property(t => t.account__).HasColumnName("account_#");
            this.Property(t => t.CurrencyTotal).HasColumnName("CurrencyTotal");
            this.Property(t => t.Base1Total).HasColumnName("Base1Total");
            this.Property(t => t.Base2Total).HasColumnName("Base2Total");
        }
    }
}
